/**
 * 2025/01/01 - 2025/12/31
 */
package com.snail.server.iam.resource.controller;

import com.snail.server.iam.resource.manager.ResourceManager;
import com.snail.server.iam.resource.vo.AppResourceVO;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zgadmin
 * @date 2025/9/26 19:11
 */
@Api(tags = "资源管理")
@RestController
@RequestMapping("/app/{appId}/resource")
public class ResourceController {


    @Resource
    ResourceManager resourceManager;

    @GetMapping
    public AppResourceVO resourceByApp(@PathVariable("appId") Long appId) {
        return resourceManager.resourceByApp(appId);
    }
}